<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<script src="js/vue.js" type="text/javascript" charset="utf-8"></script>
	</head>
	<body>
		<div id="app">
			<span>{{message}}</span>
		</div>
	</body>
	<script type="text/javascript">
		var app = new Vue({
			el: '#app',
			
			//使用data属性来绑定变量
			data: {
				message: "这是要渲染的模板字符串。"
			}
		});
		
		window.setTimeout(function(){
			app.message = "本例用于测试响应式DOM，3秒后你将看到该信息。";
		}, 3000);
	</script>
</html>
